package com.tanoak.bootjpa.dao;

import com.tanoak.bootjpa.entity.Hello;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;


/**
 * @Author tanoak
 * Created By  on 2018/1/19
 * @Describe
 */
@Repository
public interface HelloDao extends JpaRepository<Hello ,Long> {

    /*@Query("SELECT id,name FROM hello WHERE id = :id")
    Hello findByName(@Param("id") int id);*/
}
